package com.dt.platform.oa.service;

import com.dt.platform.domain.oa.NetdiskOriginFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

/**
 * <p>
 * 存储方式服务接口
 * </p>
 * @author 金杰 , maillank@qq.com
 * @since 2023-09-18 14:21:10
*/

public interface INetdiskStoreDataService {

    String getStorageType();

    Boolean write(NetdiskOriginFile fileInfo, MultipartFile mf);

    byte[] read(NetdiskOriginFile fileInfo);

    InputStream readStream(NetdiskOriginFile fileInfo);

    boolean removeFile(NetdiskOriginFile fileInfo);

    Boolean isFileExists(NetdiskOriginFile fileInfo);
}